#include "stdafx.h"
#include "../aclib/TextParser.h"

namespace AC = AppliedCryptography;
using ::testing::Return;

TEST(TextParser, ConvertStr)
{
	AC::TextParser t;
	std::vector<byte> bytes;
	std::string str("Jaanis");
	std::string str2;

	bytes = t.Encode(str);
	str2 = t.Decode(bytes);

	EXPECT_TRUE(str.compare(str2) == 0);
};

